<h2></h2>
<?php echo $this->Html->link('Criar', array('controller' => 'profissionals', 'action' => 'adicionar'));
?>

<table>
    <tr>
        <th>Nome</th>
        <th>Profissão</th>
        <th>Área</th>
        <th>email</th>        
    </tr>

    <!-- Here is where we loop through our $posts array, printing out profissional info -->

    <?php foreach ($profissionals as $profissional): ?>

    <?php echo $this->Form->input('id', array('value' => $this->Session->read('Auth.Profissional.id'),'type' => 'hidden')); ?></td>

    <tr>
        <td>
            <?php echo $this->Html->link($profissional['Profissional']['nome'],
            array('controller' => 'profissionals', 'action' => 'ver', $profissional['Profissional']['id'])); ?>
        </td>
        <td><?php echo $profissional['Profissional']['profissao']; ?></td>
        <td><?php echo $profissional['Profissional']['area']; ?></td> 
        <td><?php echo $profissional['Profissional']['email']; ?></td>             
        
    </tr>
        <?php endforeach; ?>
        <?php unset($profissional); ?>
    </table>